<template>
	<custom-vertical-list-card :item="item">
		<view slot="cardcontent">
			<!-- #ifdef MP-WEIXIN -->
			<view class="" wx:for="(sitem, index) in item.list" wx:key="'cardcontent_' + index">
				<custom-vertical-list-rolltext :item="sitem" :isBrowser="isBrowser" v-if="sitem.type === 'rolltext'"></custom-vertical-list-rolltext>
				<custom-vertical-list-group-news :item="sitem" :isBrowser="isBrowser" v-if="sitem.type === 'groupNews'"></custom-vertical-list-group-news>
			</view>
			<!-- #endif -->
			<!-- #ifndef MP-WEIXIN -->
			<view class="" v-for="(sitem, index) in item.list" :key="'cardcontent_' + index">
				<custom-vertical-list-rolltext :item="sitem" :isBrowser="isBrowser" v-if="sitem.type === 'rolltext'"></custom-vertical-list-rolltext>
				<custom-vertical-list-group-news :item="sitem" :isBrowser="isBrowser" v-if="sitem.type === 'groupNews'"></custom-vertical-list-group-news>
			</view>
			<!-- #endif -->
		</view>
	</custom-vertical-list-card>
</template>

<script>
export default {
	name: 'custom-vertical-list-component-group-card',
	props: {
		item: {
			type: Object,
			default() {
				return {};
			}
		},
		isBrowser: {
			type: Boolean,
			default() {
				return false;
			}
		}
	},
	data() {
		return {};
	}
};
</script>

<style lang="less"></style>
